/**
 * @filename:Inventory Dec 11, 2023
 * Copyright(c) 2022 Wonder Co. Ltd.
 * All right reserved.
 */
package com.wonder.app.domain;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.util.Date;
import java.math.BigDecimal;

/**
 * @Description:TODO(即时库存实体类)
 *
 * @author: Wonder
 *
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_inventory")
@ApiModel(value="t_inventory对象", description="即时库存表")
public class Inventory extends Model<Inventory> {

    private static final long serialVersionUID = 1702274335552765L;

    @TableId(value ="id", type = IdType.AUTO)
    @ApiModelProperty(name = "id" , value = "编号")
    private Integer id;



    @TableField(value = "FStockNumber")
    @ApiModelProperty(name = "FStockNumber" , value = "仓库编码")
    private String FStockNumber;

    @TableField(value = "FStockName")
    @ApiModelProperty(name = "FStockName" , value = "仓库名称")
    private String FStockName;

    @TableField(value = "remark")
    @ApiModelProperty(name = "remark" , value = "备注")
    private String remark;

    @TableField(value = "Flot")
    @ApiModelProperty(name = "Flot" , value = "批号")
    private String Flot;

    @TableField(value = "FProduceDate")
    @ApiModelProperty(name = "FProduceDate" , value = "生产日期")
    private Date FProduceDate;

    @TableField(value = "FExpiryDate")
    @ApiModelProperty(name = "FExpiryDate" , value = "有效期至")
    private Date FExpiryDate;

    @TableField(value = "Funit")
    @ApiModelProperty(name = "Funit" , value = "单位")
    private String Funit;

    @TableField(value = "Fqty")
    @ApiModelProperty(name = "Fqty" , value = "数量")
    private Double Fqty;

    @TableField(value = "useCount")
    @ApiModelProperty(name = "useCount" , value = "岗上数量")
    private Double useCount;

    @TableField(value = "FMaterialNumber")
    @ApiModelProperty(name = "FMaterialNumber" , value = "物料编码")
    private String FMaterialNumber;

    @TableField(value = "FMaterialName")
    @ApiModelProperty(name = "FMaterialName" , value = "物料名称")
    private String FMaterialName;

    @TableField(value = "FSpecification")
    @ApiModelProperty(name = "FSpecification" , value = "物料名称")
    private String FSpecification;

    @TableField(value = "FUpdateTime",update = "now()")
    @ApiModelProperty(name = "FUpdateTime" , value = "最后更新时间")
    private Date FUpdateTime;

    @TableField(value = "FStockStatus")
    @ApiModelProperty(name = "FStockStatus" , value = "库存状态0在库1出库2已过期")
    private String FStockStatus;

    @TableField(value = "insertUserName")
    @ApiModelProperty(name = "insertUserName" , value = "添加人")
    private String insertUserName;

    @TableField(value = "isFlot")
    @ApiModelProperty(name = "isFlot" , value = "是否启用批次")
    private Boolean isFlot;

    @TableField(value = "isProduce")
    @ApiModelProperty(name = "isProduce" , value = "是否启用保质期")
    private Boolean isProduce;

    @TableField(value = "createTime")
    @ApiModelProperty(name = "createTime" , value = "创建时间")
    private Date createTime;

    @TableField(value = "workShop")
    @ApiModelProperty(name = "workShop" , value = "车间(岗上仓库的有车间信息)")
    private String workShop;

    @Override
    public Serializable pkVal() {
        return this.id;
    }

}
